package com.cg.bank.domain;

import java.sql.Date;

import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;

/**
 * UserBean
 *
 * @author chunges
 * @version V2.0
 * @date 2018年6月20日 下午3:03:57
 */

public class User extends ActionForm {
	private static final long serialVersionUID = 1L;
	
	// 用户ID
    private int id;
    //用户账户 该账号必须保持唯一性
    private String account;
    private String userName;
    private String password;
    private double balance;
    private String mail;
    private int age;
    private String sex;
    private Date createTime;
    private String image;
    private FormFile formFile;

    public User() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
    
    public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
    
    public FormFile getFormFile() {
		return formFile;
	}

	public void setFormFile(FormFile formFile) {
		this.formFile = formFile;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", account=" + account + ", userName=" + userName + ", password=" + password
				+ ", balance=" + balance + ", mail=" + mail + ", age=" + age + ", sex=" + sex + ", createTime="
				+ createTime + ", image=" + image + ", formFile=" + formFile + "]";
	}
	
}